<?php

inc_class("cubic");

class page extends cubic
{
	function __construct()
	{
        parent::__construct();

        $this->xml = new xml();
	}

	function __destruct()
	{
	    parent::__destruct();
	}

	function render()
	{
	    parent::render();
        $doctype =
        "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>
        <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
	    $xhtml = $this->xml->GetDOM()->saveXML();
	    $xhtml = pcre::replace("^".pcre::escape("<?").".*?".pcre::escape("?>"), $doctype, $xhtml);
	    echo $xhtml;
	    exit(0);
	}
}

?>